package homework.day28;

import java.util.Vector;

public class ArrayCopy {

	public Vector<String> moveToVector(String[] datas) {
		
		Vector<String> result = new Vector<String>();
		
		for(int i=datas.length-1; i>=0; i--) {
			result.add(datas[i]);
		}
		
		return result;	
	}
	
	public static void main(String[] args) {
		ArrayCopy ac = new ArrayCopy();
		String datas[] = {"1", "2", "3", "4", "5"};
//		for(int i=0 ; i< ac.moveToVector(datas).toString().length(); i++) {
//			System.out.print(ac.moveToVector(datas).toString().charAt(i));
//		}
		System.out.println(ac.moveToVector(datas));
	}

}
